package com.fom2008;

import android.database.ContentObserver;
import android.os.Handler;
import android.util.Log;

// Very simple Observer that checks against the contact list (set in the FOM2008).
public class FomObserver extends ContentObserver {

	public FomObserver(Handler handler) {
		super(handler);
	}

	@Override
	public void onChange(boolean selfChange) {
		super.onChange(selfChange);

		// As we can see, we observed a change. It is up to us to get the change
		// itself. Usually you could query for the latest input against the
		// content provider or with the highest id...
		//
		// As the observer is per URI, we could potentially observe URI with
		// IDs.
		//
		// It could be more helpful to know which URI has been added if we
		// observer the root but this is not implemented
		Log.i("FOM", "something changed among the contact list...");
	}

}
